package com.gxwy.shenzhou;

import java.nio.CharBuffer;

public class MessageFactory {
	public static String getIntegrateMessage(CharBuffer bytes, int len)
	{
		char[] dst = new char[len]; 
		int off = 0;
		for (int i = off; i < off + len; i++)
	         dst[i] = bytes.get(i);
		
		String tmp = String.valueOf(dst);
		return tmp;
		
		/*
		 * if (tmp.toString().equals("abcdef"))
			return tmp.toString();
		else
			return null;
		 */
		
	}
}